#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

class A
{
public:
	A(int a = 0, int b = 0)
		:_a(a)
		, _b(b)
	{
		cout << "A(_a = 0, _b = 0)" << endl;
	}
	A(const A& a)
		:_a(a._a)
	{
		cout << "A(const A& a)" << endl;
	}
	A& operator=(const A& a)
	{
		cout << "A& operator=(const A& a)" << endl;
		if (this != &a)
		{
			_a = a._a;
		}
		return *this;
	}
	~A()
	{
		cout << "~A()" << endl;
	}
		
private:
	int _a = 1;
	int _b = 1;
};

int main()
{
	A a;
	A b(a);
	A* p1 = new A(1);
	delete(p1);
	return 0;
}